package aos.ydksxt.dao;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

/**
 * Created by Stiofan on 2017/2/16.
 */
@Entity
@Table(name = "DJ_TDSYQDJXX_JMXX")
public class DjTdsyqdjxxJmxx {
    private String tdsyqjmuuid;
    private String tdsyquuid;
    private String tddjmxuuid;
    private String tdjmxzDm;
    private BigDecimal jmmj;
    private BigDecimal jmse;
    private Date jmYxqq;
    private Date jmYxqz;
    private String yxbz;
    private String lrrDm;
    private Timestamp lrrq;
    private String xgrDm;
    private Timestamp xgrq;
    private String zfyy;
    private String zfrDm;
    private Timestamp zfrq;

    @Id
    @Column(name = "TDSYQJMUUID", nullable = false, length = 32)
    public String getTdsyqjmuuid() {
        return tdsyqjmuuid;
    }

    public void setTdsyqjmuuid(String tdsyqjmuuid) {
        this.tdsyqjmuuid = tdsyqjmuuid;
    }

    @Basic
    @Column(name = "TDSYQUUID", nullable = true, length = 32)
    public String getTdsyquuid() {
        return tdsyquuid;
    }

    public void setTdsyquuid(String tdsyquuid) {
        this.tdsyquuid = tdsyquuid;
    }

    @Basic
    @Column(name = "TDDJMXUUID", nullable = true, length = 32)
    public String getTddjmxuuid() {
        return tddjmxuuid;
    }

    public void setTddjmxuuid(String tddjmxuuid) {
        this.tddjmxuuid = tddjmxuuid;
    }

    @Basic
    @Column(name = "TDJMXZ_DM", nullable = true, length = 2)
    public String getTdjmxzDm() {
        return tdjmxzDm;
    }

    public void setTdjmxzDm(String tdjmxzDm) {
        this.tdjmxzDm = tdjmxzDm;
    }

    @Basic
    @Column(name = "JMMJ", nullable = true, precision = 2)
    public BigDecimal getJmmj() {
        return jmmj;
    }

    public void setJmmj(BigDecimal jmmj) {
        this.jmmj = jmmj;
    }

    @Basic
    @Column(name = "JMSE", nullable = true, precision = 2)
    public BigDecimal getJmse() {
        return jmse;
    }

    public void setJmse(BigDecimal jmse) {
        this.jmse = jmse;
    }

    @Basic
    @Column(name = "JM_YXQQ", nullable = true)
    public Date getJmYxqq() {
        return jmYxqq;
    }

    public void setJmYxqq(Date jmYxqq) {
        this.jmYxqq = jmYxqq;
    }

    @Basic
    @Column(name = "JM_YXQZ", nullable = true)
    public Date getJmYxqz() {
        return jmYxqz;
    }

    public void setJmYxqz(Date jmYxqz) {
        this.jmYxqz = jmYxqz;
    }

    @Basic
    @Column(name = "YXBZ", nullable = true, length = 1)
    public String getYxbz() {
        return yxbz;
    }

    public void setYxbz(String yxbz) {
        this.yxbz = yxbz;
    }

    @Basic
    @Column(name = "LRR_DM", nullable = true, length = 11)
    public String getLrrDm() {
        return lrrDm;
    }

    public void setLrrDm(String lrrDm) {
        this.lrrDm = lrrDm;
    }

    @Basic
    @Column(name = "LRRQ", nullable = true)
    public Timestamp getLrrq() {
        return lrrq;
    }

    public void setLrrq(Timestamp lrrq) {
        this.lrrq = lrrq;
    }

    @Basic
    @Column(name = "XGR_DM", nullable = true, length = 11)
    public String getXgrDm() {
        return xgrDm;
    }

    public void setXgrDm(String xgrDm) {
        this.xgrDm = xgrDm;
    }

    @Basic
    @Column(name = "XGRQ", nullable = true)
    public Timestamp getXgrq() {
        return xgrq;
    }

    public void setXgrq(Timestamp xgrq) {
        this.xgrq = xgrq;
    }

    @Basic
    @Column(name = "ZFYY", nullable = true, length = 300)
    public String getZfyy() {
        return zfyy;
    }

    public void setZfyy(String zfyy) {
        this.zfyy = zfyy;
    }

    @Basic
    @Column(name = "ZFR_DM", nullable = true, length = 11)
    public String getZfrDm() {
        return zfrDm;
    }

    public void setZfrDm(String zfrDm) {
        this.zfrDm = zfrDm;
    }

    @Basic
    @Column(name = "ZFRQ", nullable = true)
    public Timestamp getZfrq() {
        return zfrq;
    }

    public void setZfrq(Timestamp zfrq) {
        this.zfrq = zfrq;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DjTdsyqdjxxJmxx that = (DjTdsyqdjxxJmxx) o;

        if (tdsyqjmuuid != null ? !tdsyqjmuuid.equals(that.tdsyqjmuuid) : that.tdsyqjmuuid != null) return false;
        if (tdsyquuid != null ? !tdsyquuid.equals(that.tdsyquuid) : that.tdsyquuid != null) return false;
        if (tddjmxuuid != null ? !tddjmxuuid.equals(that.tddjmxuuid) : that.tddjmxuuid != null) return false;
        if (tdjmxzDm != null ? !tdjmxzDm.equals(that.tdjmxzDm) : that.tdjmxzDm != null) return false;
        if (jmmj != null ? !jmmj.equals(that.jmmj) : that.jmmj != null) return false;
        if (jmse != null ? !jmse.equals(that.jmse) : that.jmse != null) return false;
        if (jmYxqq != null ? !jmYxqq.equals(that.jmYxqq) : that.jmYxqq != null) return false;
        if (jmYxqz != null ? !jmYxqz.equals(that.jmYxqz) : that.jmYxqz != null) return false;
        if (yxbz != null ? !yxbz.equals(that.yxbz) : that.yxbz != null) return false;
        if (lrrDm != null ? !lrrDm.equals(that.lrrDm) : that.lrrDm != null) return false;
        if (lrrq != null ? !lrrq.equals(that.lrrq) : that.lrrq != null) return false;
        if (xgrDm != null ? !xgrDm.equals(that.xgrDm) : that.xgrDm != null) return false;
        if (xgrq != null ? !xgrq.equals(that.xgrq) : that.xgrq != null) return false;
        if (zfyy != null ? !zfyy.equals(that.zfyy) : that.zfyy != null) return false;
        if (zfrDm != null ? !zfrDm.equals(that.zfrDm) : that.zfrDm != null) return false;
        if (zfrq != null ? !zfrq.equals(that.zfrq) : that.zfrq != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = tdsyqjmuuid != null ? tdsyqjmuuid.hashCode() : 0;
        result = 31 * result + (tdsyquuid != null ? tdsyquuid.hashCode() : 0);
        result = 31 * result + (tddjmxuuid != null ? tddjmxuuid.hashCode() : 0);
        result = 31 * result + (tdjmxzDm != null ? tdjmxzDm.hashCode() : 0);
        result = 31 * result + (jmmj != null ? jmmj.hashCode() : 0);
        result = 31 * result + (jmse != null ? jmse.hashCode() : 0);
        result = 31 * result + (jmYxqq != null ? jmYxqq.hashCode() : 0);
        result = 31 * result + (jmYxqz != null ? jmYxqz.hashCode() : 0);
        result = 31 * result + (yxbz != null ? yxbz.hashCode() : 0);
        result = 31 * result + (lrrDm != null ? lrrDm.hashCode() : 0);
        result = 31 * result + (lrrq != null ? lrrq.hashCode() : 0);
        result = 31 * result + (xgrDm != null ? xgrDm.hashCode() : 0);
        result = 31 * result + (xgrq != null ? xgrq.hashCode() : 0);
        result = 31 * result + (zfyy != null ? zfyy.hashCode() : 0);
        result = 31 * result + (zfrDm != null ? zfrDm.hashCode() : 0);
        result = 31 * result + (zfrq != null ? zfrq.hashCode() : 0);
        return result;
    }
}
